try {
    $response = Invoke-WebRequest -Uri http://localhost:5173/api/login -Method POST -Headers @{'Content-Type'='application/json'} -Body '{"username":"admin","password":"123456"}'
    Write-Host "Status Code: $($response.StatusCode)"
    Write-Host "Response: $($response.Content)"
} catch {
    Write-Host "Error: $($_.Exception.Message)"
    Write-Host "Error Details: $($_.Exception.Response)"
}